﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace Cadcam7Moddel.Model
{
    public class NgonNgu
    {
        [Key]
        [Display(Name="Mã")]
        public string Ma { get; set; }
        [Required(ErrorMessage="Bạn chưa nhập tên ngon ngữ")]
        [Display(Name="Tên ngôn ngữ")]
        public string TenNgonNgu { get; set; }
        [Display(Name="Logo")]
        [Required(ErrorMessage="Logo")]
        public string HinhAnh { get; set; }

        [InverseProperty("NgonNgu")]
        public virtual ICollection<Trang> Trangs { get; set; }
        [InverseProperty("NgonNgu")]
        public virtual ICollection<Loaitin> LoaiTin { get; set; }
        [InverseProperty("NgonNgu")]
        public virtual ICollection<Tintuc> TinTucs { get; set; }
               [InverseProperty("NgonNgu")]
        public virtual ICollection<Cauhinhtrang> Cauhinhtrangs { get; set; }

        [InverseProperty("NgonNgu")]
        public virtual ICollection<Mon> Mons { get; set; }
        [InverseProperty("NgonNgu")]
        public virtual ICollection<Subject> Subjects { get; set; }
    }
}
